var fs = require('fs');





var data = "test writable";

var writeStream=fs.createWriteStream('./file/output.txt');

writeStream.write(data,'utf-8');

writeStream.end();

writeStream.on('finish',function () { // 写到不可写
    console.log('写入完成！');
})